package com.yyfax.pay.common.enums;

public enum BusiTypeEnum {
    ENTRUST_CHARGE(1, "委托充值");

    private Integer value;
    private String name;

    BusiTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static BusiTypeEnum form(Integer value) {
        for (BusiTypeEnum busiTypeEnum : BusiTypeEnum.values()) {
            if (busiTypeEnum.getValue().intValue() == value.intValue()) {
                return busiTypeEnum;
            }
        }
        return null;
    }

}
